package com.example.demo.core.page;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class PageDto {
    @Min(value = 1)
    @Max(value = Integer.MAX_VALUE)
    private int pageNum = 1;

    @Min(value = 1)
    @Max(value = Integer.MAX_VALUE)
    private int pageSize = 10;
}
